<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="fmt" uri="http://www.springframework.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>维修验证</title>
    <link rel="stylesheet" href="/lib/layui/layui/css/layui.css?20190817.1">
    <link rel="stylesheet" href="/lib/layui/layui/css/common.css">
    <script src="/lib/layui/layui/layui.js"></script>
    <script type="text/javascript" src="/lib/layui/layui/global.js"></script>
    <script type="text/javascript" src="../../js/jquery/jquery-1.9.1.js"></script>
<%--
    <script src="/lib/layui/layui/js/baseCode/base.js" type="text/javascript" charset="utf-8"></script>
--%>
    <script src="/lib/layui/layui/js/baseCode/base.js?v=201908121454" type="text/javascript" charset="utf-8"></script>
    <script src="/js/jquery/jquery.cookie.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .layui-card-header{
            border-bottom: 1px solid #eee;
        }
        .newTable{
            width: 80%;
            margin: 0 auto;
        }
        .layui-form .one{
            width: 100%;
            display: flex;
            flex-flow: row wrap;
            justify-content: space-around;
        }
        .layui-form-item{
            width: 48%;
        }
        .layui-inline{
            width: 40%;
            height: 38px;
        }
        .layui-form-label{
            width:64px;
        }
        .layui-input-block{

        }
        select{
            width: 100%;
            height: 38px;
        }
        input::-webkit-input-placeholder {
            color: #aab2bd;
        }
        .buttonbottom{
            text-align: center;
        }
        .buttonbottom button{
            background-color: #009284;
            width: 90px;
            margin-top: 30px;
        }
        .layui-treeSelect .ztree li span.button.root_open:before, .layui-treeSelect .ztree li span.button.root_close:before{
            content: "\e623";
        }
        .layui-form-selectup dl {
            top: 42px;
            bottom: unset;
        }
        #borrowerUser{
            line-height: 38px;
        }
        .select .layui-input{
            height: 28px;
        }
        /*---------------*/

        #memo{
            width:696px;
        }
        .inp{
            height: 33px;
            border:none
        }
        .taby{
            width:100%;
            min-height: 25px;
            line-height: 25px;
            text-align: center;
            border:1px solid #e6e6e6;
            border-collapse: collapse;
        }
        td{
            border:1px solid #e6e6e6;
            height: 40px;
            line-height: 40px;
        }
        th{
            border:1px solid #e6e6e6;
        }
        #experiencebase .layui-table{
            width: 100%!important;
        }
        .btnbox{
            position: relative;
            width: 100%;
            height: 40px;
            line-height: 40px;
        }
        .seeFild{
            padding:5px 10px 0 0;
        }
        .seeFildLable{
            margin-right: 10px;
        }

        .equipmentInfo input{
            width: 97%;
        }
        .equipmentInfo label{
            width:85px;
        }
        .faultStyles{
            width:70%;
            float:left;
        }
        .fault_information{
            margin-top:10px;
        }
        .fault_information .layui-form-item{
            width:25%;
        }
        .fault_information .layui-form-item .layui-input-block{
            margin-left: 87px;
            position:relative;
        }
        .fault_information .layui-form-item .layui-input-block span{
            float: left;
            padding:10px 0 0 5px;
        }
        .technicalParm{
            margin-left: 1%;
            width: 100%;
        }
        @media screen and (max-width:1024px) {
            .fault_information .layui-form-item{
                width:35%;
            }
            .technicalParm{
                width:83%;
            }
        }
    </style>
</head>
<body>
<div class="mbox">
    <div class="layui-card">
        <div class="layui-card-body">
            <form class="layui-form" lay-filter="formTest" action=""style="width: 100%;
            margin: 0 auto;">
                <input type="text" name="equipId" style="display: none" id="layui-form">
                <div style="width: 100%;height:36px;line-height:36px;font-weight:bold;padding-left: 6px;background-color: #eeeeee">设备信息</div>
                <div class="one equipmentInfo" style="padding-top: 20px;">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style=""><span style="color: red;">*</span>报修部门</label>
                        <div class="layui-input-block" id="deptoper">
                            <input type="text" name="borrowerdeptName" disabled placeholder="请输入" autocomplete="off" class="layui-input borrowerdeptName">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">报修人</label>
                        <div class="layui-input-block">
                            <input type="text" name="applicant" disabled placeholder="请输入" autocomplete="off" class="layui-input borrowerUser">
                        </div>
                    </div>
                </div>
                <div class="one equipmentInfo">
                    <div class="layui-form-item">
                        <label class="layui-form-label">设备名称</label>
                        <div class="layui-input-block" >
                            <input type="text" name="equipName" disabled  placeholder="请输入" autocomplete="off" class="layui-input typename">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">固定资产编号</label>
                        <div class="layui-input-block">
                            <input type="text" name="equipNo" disabled placeholder="请输入" autocomplete="off" class="layui-input zichno">
                        </div>
                    </div>
                </div>
                <div class="one equipmentInfo">
                    <div class="layui-form-item">
                        <label class="layui-form-label">设备类型</label>
                        <div class="layui-input-block">
                            <input type="text" name="equipTypeName" disabled  placeholder="请输入" autocomplete="off" class="layui-input eqtype">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">出厂编号</label>
                        <div class="layui-input-block">
                            <input type="text" name="factoryNo" disabled placeholder="请输入" autocomplete="off" class="layui-input chnum">
                        </div>
                    </div>
                </div>
                <div class="one equipmentInfo">
                    <div class="layui-form-item">
                        <label class="layui-form-label">型号</label>
                        <div class="layui-input-block">
                            <input type="text" name="modelNo" disabled  placeholder="请输入" autocomplete="off" class="layui-input model">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">规格</label>
                        <div class="layui-input-block">
                            <input type="text" name="spec" disabled placeholder="请输入" autocomplete="off" class="layui-input spec">
                        </div>
                    </div>
                </div>
                <div id="eqba" style="width: 100%;height:36px;line-height:36px;font-weight:bold;padding-left: 6px;background-color: #eeeeee">故障信息</div>
                <div class="one fault_information">
                    <div class="layui-form-item">
                        <label class="layui-form-label"><span style="color: red;">*</span>现象分类</label>
                        <div class="layui-input-block">
                            <div class="faultStyles">
                                <select disabled name="faultType" id="faultType" class="faultTypes" >
                                    <option value="">请选择</option>
                                </select>
                                <span style="float: left;padding:10px 0 0 22px"></span>
                            </div>
                            <%--<input type="text" name="faultType" disabled  autocomplete="off" class="layui-input faultType" style="width:180px;float: left;">--%>
                            <span style="float: left;padding:10px 0 0 22px"></span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><span style="color: red;">*</span>发生部位</label>
                        <div class="layui-input-block">
                            <input type="text" disabled name="faultPosition" id="faultPosition" placeholder="请输入" autocomplete="off" class="layui-input faultPosition faultStyles">
                            <%--<input type="text" name="faultPosition" disabled autocomplete="off" class="layui-input faultPosition"style="width:180px;float: left;">--%>
                            <span style="float: left;padding:10px 0 0 44px"></span>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label"><span style="color: red;">*</span>报修时间</label>
                        <div class="layui-input-block">
                            <input type="datetime" disabled name="applicationTime" id="yzdata"  autocomplete="off"  class="layui-input applicationTime faultStyles"placeholder="请选择时间">
                            <%--<input type="text" name="applicationTime" disabled id="yzdata"  autocomplete="off"  class="layui-input applicationTime"  style="width:180px;float: left;">--%>
                            <span style="float: left;padding:10px 0 0 10px"></span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"></label>
                        <div class="layui-input-block">
                        </div>
                    </div>
                </div>
                <div class="one">
                    <div class="layui-form-item technicalParm">
                        <label class="layui-form-label" style="margin-left: -11px;"><span style="color: red;">*</span>故障描述</label>
                        <div class="layui-input-block">
                            <textarea name="faultDesc" disabled id="technicalParm" placeholder="请输入内容" class="layui-textarea faultDesc" style="height: 10px;margin-left: -27px;"></textarea>
                            <%--<textarea name="faultDesc" disabled  id="technicalParm" placeholder="请输入内容" class="layui-textarea faultDesc" style="height: 10px;margin-left: -27px;"></textarea>--%>
                        </div>
                    </div>
                </div>
                <div>
                    <div class="inbox" style="margin-bottom:10px">
                        <%--<label class="layui-form-label">--%>
                            <%--<span class="red">*</span>附件名称--%>
                        <%--</label>--%>
                        <div id="attachmentName">

                        </div>
                    </div>
                </div>
                <div class="buttonbottom">
                    <button id="add-file-submit" class="layui-btn layui-btn-sm"lay-submit lay-filter="formDemo" style="display: none"></button>
                </div>
                <div>
                    <table class="taby">
                        <thead>
                        <tr style="  background-color: #f2f2f2;">
                            <th style="width: 200px; height:40px; line-height:40px;" lay-data="{field:'username', width:200}"></th>
                            <th lay-data="{field:'experience', width:400}">内部故障诊断&维修措施</th>
                            <th lay-data="{field:'sign'}">外部故障诊断&维修措施</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>检测结果</td>
                            <td><input type="text" value="" disabled  name="inResult" class="layui-input inp inResult" autocomplete="off"></td>
                            <td><input type="text" value=""  disabled  name="outResult" class="layui-input inp outResult" autocomplete="off"></td>
                            <%--<td><input type="hidden" value=""  name="experId" class="layui-input inp experId" autocomplete="off"></td>--%>
                        </tr>
                        <tr>
                            <td>故障定位</td>
                            <td><input type="text" value="" disabled   name="inFaultPosition" class="layui-input inp inFaultPosition" autocomplete="off"></td>
                            <td><input type="text" value="" disabled   name="outFaultPosition" class="layui-input inp outFaultPosition" autocomplete="off"></td>

                        </tr>
                        <tr>
                            <td>原因分析</td>
                            <td><input type="text"value="" disabled   name="inReason" class="layui-input inp inReason" autocomplete="off"></td>
                            <td><input type="text"value="" disabled   name="outReason" class="layui-input inp outReason" autocomplete="off"></td>
                        </tr>
                        <tr>
                            <td>维修措施</td>
                            <td><input type="text" value="" disabled  name="inRepairMeasure" class="layui-input inp" id="inRepairMeasure"autocomplete="off"></td>
                            <td><input type="text" value="" disabled  name="outRepairMeasure" class="layui-input inp outRepairMeasure" autocomplete="off"></td>
                        </tr>
                        <tr>
                            <td>维修方式</td><%--下拉框--%>
                            <td>
                                <%--<select name="inRepairMode"  id="inR" style="height: 28px">--%>
                                    <%--<option value="">请选择</option>--%>
                                <%--</select>--%>
                                <input type="text" value="" disabled  name="inRepairMode" class="layui-input inp inRepairMode" autocomplete="off">
                            </td>
                            <td>
                                <input type="text" value="" disabled  name="outRepairMode" class="layui-input inp outRepairMode" autocomplete="off">
                                <%--<select name="outRepairMode" class="outRepairMode" style="height: 28px">--%>
                                    <%--<option value="">请选择</option>--%>
                                <%--</select>--%>
                            </td>
                        </tr>
                        <tr>
                            <td>维修等级</td>
                            <td>
                                <input type="text" value="" disabled  name="inRepairRank" class="layui-input inp inRepairRank" autocomplete="off">
                                <%--<select name="inRepairRank" class="inRepairRank" id="Deng" style="height: 28px" autocomplete="off">--%>
                                    <%--<option value="">请选择</option>--%>
                                <%--</select>--%>
                            </td>
                            <td>
                                <input type="text" value="" disabled  name="outRepairRank" class="layui-input inp outRepairRank" autocomplete="off">
                                <%--<select name="outRepairRank" class="outRepairRank" style="height: 28px" autocomplete="off">--%>
                                    <%--<option value="">请选择</option>--%>
                                <%--</select>--%>
                            </td>
                        </tr>
                        <tr>
                            <td>维修预算</td>
                            <td><input type="text" value="" disabled name="inPrice" class="layui-input inp inPrice" autocomplete="off"></td>
                            <td><input type="text" value="" disabled name="outPrice" class="layui-input inp outPrice" autocomplete="off"></td>
                        </tr>
                        <tr>
                            <td>计划完成时间</td>
                            <td><input type="text" value="" disabled  name="inPlanTime" class="layui-input inp inPlanTime none" autocomplete="off"></td>
                            <td><input type="text" value="" disabled  name="outPlanTime" class="layui-input inp outPlanTime none" autocomplete="off"></td>
                        </tr>
                        <tr>
                            <td>诊断人员</td>
                            <td><input type="text" value="" disabled  name="inPerson" class="layui-input inp inPerson none" autocomplete="off"></td>
                            <td><input type="text" value="" disabled  name="outPerson" class="layui-input inp outPerson none" autocomplete="off"></td>
                        </tr>
                        </tbody>
                    </table>
                </div>

            <%--id="eqba"--%>
                <div  style="width: 100%;height:36px;line-height:36px;font-weight:bold;padding-left: 6px;background-color: #eeeeee">验证结果</div>
                <div class="one" style="margin-top: 10px">
                    <div class="layui-form-item">
                        <label class="layui-form-label">验证措施</label>
                        <div class="layui-input-block">
                            <textarea name="verifyMeasure" id="verifyMeasure" style="width: 228%"  placeholder="请输入内容" class="layui-textarea verifyMeasure"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                    </div>
                </div>
                <div class="one">
                    <div class="layui-form-item">
                        <label class="layui-form-label">验证方式</label>
                        <div class="layui-input-block">
                            <%--<input type="text" name="equipVerifyMode" autocomplete="off" class="layui-input equipVerifyMode">--%>
                                <select name="equipVerifyMode"  id="equipVerifyMode" class="equipVerifyMode" style="height: 28px">
                                <option value="">请选择</option>
                                </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">验证结果</label>
                        <div class="layui-input-block">
                            <%--<input type="text" name="equipRepairResult"  autocomplete="off" class="layui-input equipRepairResult">--%>
                                <select name="equipRepairResult"  id="equipRepairResult" class="equipRepairResult" style="height: 28px">
                                    <option value="">请选择</option>
                                </select>
                        </div>
                    </div>
                </div>
                <div class="one">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="margin-left:-4px;width: 84px;">维修完成日期</label>
                        <div class="layui-input-block">
                            <input type="text" name="reportDoneTime" id="wxdata"  autocomplete="off" class="layui-input reportDoneTime" placeholder="请选择时间">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">验证人</label>
                        <div class="layui-input-block">
                            <input type="text" name="verifyUserName" placeholder="请输入" autocomplete="off" class="layui-input verifyUser"disabled="disabled">
                            <input type="hidden" name="verifyUser" id="applicant" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
        </div>
        </form>
    </div>
</div>
</div>
</div>
<script type="text/html" id="toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" type="button" lay-event="addd" style="width: 70px">选择设备</button>
        <button class="layui-btn layui-btn-sm" lay-event="pdel" style="width: 70px">删除</button>
    </div>
</script>
<script>
    var datas="",
        borrow="";
    var SettlementTable;
    var userId=$.cookie('userId');
    $("#applicant").val(userId);
    var userName=$.cookie('userName');
    $(".verifyUser").val(userName);
    $("#borrowerOperationUser").val(userName);
    var deptId=0;
    var repalogId = parent.repalogId;
    var objData;
    var table;
    function getQueryString(name){
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if(r!=null)return  unescape(r[2]); return null;
    }
    var weixyzbtn = getQueryString("weixyzbtn");
    layui.use(['form', 'layer','table', 'element','upload','laydate'], function() {
        var form = layui.form
            , layer = layui.layer
            ,element = layui.element
            ,table = layui.table
            ,upload = layui.table
            ,laydate = layui.laydate
        var $ = layui.jquery;
        console.log(weixyzbtn)
        if(weixyzbtn=='detail'){
            $("#verifyMeasure").attr("readonly",true)
            $("#equipVerifyMode").attr("disabled",true)
            $("#equipRepairResult").attr("disabled",true)
            $("#wxdata").attr("disabled",true)
            $("#applicant").attr("disabled",true)
        }

        $.ajax({
            url:'/equipment/selectByReparlog?repalogId='+ repalogId,
            type:'post',
            dataType: 'json',
            success:function(res){
                objData=res.data[0];
                $(".borrowerdeptName").val(res.data[0].deptName)
                form.val("formTest", res.data[0]);
                $("#attachmentName").empty()//渲染查看附件，下载附件按钮
                var attach = ""
                for(var i=0;i<res.obj.limsEquipReparlogFiles.length;i++){
                    var attId = res.obj.limsEquipReparlogFiles[i].attachmentId;
                    var repairId = res.data[0].repalogId;
                    var attName = res.obj.limsEquipReparlogFiles[i].attachmentName;
                    if(attId!=''&&attName!=''&&attId!=undefined&&attName!=undefined){
                        var attachIdArr = attId.split(',');
                        var attachNameArr = attName.split(',');
                        for(var j=0;j<attachIdArr.length;j++){

                            var attachId = "\""+attachIdArr[j]+"\"";
                            var repairId = repairId;
                            var attachName = attachNameArr[j];
                            if(attachId!=''&&attachName!=''){
                                attach+="<div id='attachId"+repairId+"' style='margin-left:10px;padding: 10px 0 10px 0'><label class='seeFild'>附件名称</label><label class='seeFildLable'>"+attachName+"</label><button type='button' class='layui-btn layui-btn-sm' onclick='lookFile("+attachId+")'>查看</button><button type='button' class='layui-btn layui-btn-sm' onclick='downFile("+attachId+")'>下载</button></div>"
                            }
                        }
                    }

                }
                $("#attachmentName").append(attach)
                //渲染现象分类
                $.ajax({
                    url: '/equipment/selectAllCommonCode?parentTyepNo=EQUIP_FAILURE'
                    , type: 'post'
                    , success: function (res1) {
                        var fault = ''
                        for (var i = 0; i < res1.data.length; i++) {
                            if(res.data[0].faultType== res1.data[i].codeName){
                                fault += '<option selected value="' + res1.data[i].codeNo + '">' +  res1.data[i].codeName + '</option>'
                            }else{
                                fault += '<option value="' + res1.data[i].codeNo + '">' +  res1.data[i].codeName + '</option>'
                            }
                        }
                        $('#faultType').append(fault)
                        form.render('select');
                    }
                })
                //渲染验证方式下拉框
                $.ajax({
                    url: '/equipment/selectAllCommonCode?parentTyepNo=EQUIP_VERIFY_MODE'
                    , type: 'post'
                    , success: function (res) {
                        var fault = ''
                        for (var i = 0; i < res.data.length; i++) {
                            if(objData.equipRepairResult!=undefined){
                                if(objData.equipVerifyMode==res.data[i].codeName){
                                    fault += '<option selected value="' + res.data[i].codeNo + '">' +  res.data[i].codeName + '</option>'
                                }else{
                                    fault += '<option value="' + res.data[i].codeNo + '">' +  res.data[i].codeName + '</option>'
                                }
                            }else{
                                fault += '<option value="' + res.data[i].codeNo + '">' +  res.data[i].codeName + '</option>'
                            }

                        }
                        $('.equipVerifyMode').append(fault);
                        form.render("select")
                    }
                })

                //渲染验证结果下拉框
                $.ajax({
                    url: '/equipment/selectAllCommonCode?parentTyepNo=EQUIP_REPAIR_RESULT'
                    , type: 'post'
                    , success: function (res) {
                        var fault = ''
                        for (var i = 0; i < res.data.length; i++) {
                            if(objData.equipRepairResult!=undefined){
                                if(objData.equipRepairResult==res.data[i].codeName ){
                                    fault += '<option selected value="' + res.data[i].codeNo + '">' +  res.data[i].codeName + '</option>'
                                }else{
                                    fault += '<option value="' + res.data[i].codeNo + '">' +  res.data[i].codeName + '</option>'
                                }
                            }else{
                                fault += '<option value="' + res.data[i].codeNo + '">' +  res.data[i].codeName + '</option>'
                            }
                        }
                        $('.equipRepairResult').append(fault);
                        form.render("select")
                    }
                })
            }
        })


        laydate.render({
            elem: '#wxdata'
            , trigger: 'click'//呼出事件改成click
            , format: 'yyyy-MM-dd'
        });
        form.on('select(borrowerdeptName)', function (data) {
            deptId = data.elem.value;
        });

        /*
        -------------------维修验证走的报修部门的ajax-------------------
        * */
        if(weixyzbtn = 'weixyz'){
            $.ajax({
                url:'/equipmentScrapping/showUserAndDept',
                type:'post',
                dataType: 'json',
                success:function (res) {
                    $select = $("select[name='borrowerdeptName']")
                    var optionStr = ''
                    for (var i = 0; i < res.data[1].length; i++) {
                        var datass = res.data[1][i];
                        var deptName = datass.deptName;
                        var deptId = datass.deptId
                        if(deptName==res.data[0].deptName){
                            optionStr += '<option selected value="' + deptId + '">' + deptName + '</option>'
                        }
                        optionStr += '<option  value="' + deptId + '">' + deptName + '</option>'
                    }
                    $select.append(optionStr)
                    $('.borrowerUser').val(res.data[0].userName)
                    form.render('select');
                }
            })
        }



    })
    function Xrborrow(bo) {
        $("#show").remove();
        $("#borrowerUser").html("<span id='show'>" + bo.userName + "</span>");
        $("#borrowerUser").next().val(bo.userId);
        $("#borrowerUser").next().attr("da-id",bo.userId);

    }
    function xuanren(me) {
        if (me == 1) {
            borrow = "borrow";
            if (deptId == 0) {
                layui.layer.msg("请选择借用部门")
                return false;
            }
        }
        $.popWindow("../common/lmisSelectUserExp?0");
    }
    //解决下拉框内有数据undefined问题
    function a(value) {
        if (value == undefined) {
            return ""
        }
        return value
    }
    function deleteItem(item, list) {
        // 先遍历list里面的每一个元素，对比item与每个元素的id是否相等，再利用splice的方法删除
        for (var key in list) {
            if (list[key].equipId === item) {
                list.splice(key, 1)
            }
        }
    };

    //父级页面调用子级页面
    function addData() {
        var ownerLog = {};

        return ownerLog;
    }

    function addjData() {
        var jsondata = layui.table.checkStatus('Settlement').data;
        return jsondata;
    }
    //将毫秒数转为yyyy-MM-dd格式时间
    function format(t) {
        var str = "";
        var nnow = new Date(t);
        var year = nnow.getFullYear();
        var month = nnow.getMonth() + 1;
        var day = nnow.getDate();
        str = year + "-" + month + "-" + day;
        return str;
    }

    //父级页面调用子级页面
    function addDatas() {
        var experience = {};

        experience.reportDoneTime = $('.reportDoneTime').val();
        experience.verifyUser = $('.verifyUser').val();
        experience.verifyMeasure = $(".verifyMeasure").val()//验证措施
        experience.equipVerifyMode = $(".equipVerifyMode").val()//验证方式
        experience.equipRepairResult = $(".equipRepairResult").val()//验证结果
        return experience;
    }
    function lookFile(repalogId){ //查看附件
        if (repalogId == undefined || repalogId == "") {
            layer.msg("文件已被损坏，无法查看");
        } else {
            selectFile(repalogId,'equipment');
        }
    }
    function downFile(repalogId){//下载附件
        if (repalogId == undefined || repalogId == "") {
            layer.msg("文件已被损坏，无法下载");
        } else {
            //var equipmentRepair ="equipmentRepair"
            window.location.href = "/equipment/limsDownload?model=equipment&attachId=" +repalogId
        }
    }
</script>
</body>
</html>